var RECEIVER = 'http://118.126.116.87:8080/receiver.php'; // 接收端 url
var PATH_BASE = '/home/SambaServer/wwwroot/default/wechat_manager';
function push(to) {
    return fis.plugin('http-push', {
        receiver: RECEIVER,
        to: PATH_BASE + to,  // to = $to + $file.release
        subOnly: true
    });
}

//后端资源同步
fis.match('/{config, assets,commands,controllers,models,common,modules,views}/**', {
    deploy: push('')
});

//前端资源同步
fis.match('/web/{css, js}/**', {
    deploy: push(''),
    useStandard: false
});

//composer 资源同步
fis.match('/{composer.json,fis-conf.js,composer.lock}', {
    deploy: push('')
});
